<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<div th:if="${error}" th:text="${error}"></div>
    <form action="/login_in" method="get" th:object="${user}">
        用户名：<input type="text" name="username" th:field="*{username}"><br>
        密码：<input type="password" name="password" th:field="*{password}"><br>
        <input type="submit" value="登录">
    </form>
</body>
</html>